package com.rightsidetech.commom.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName PageRequest
 * @Description TODO 分页查询实体
 */
@Data
public class PageRequest implements Serializable {
    @ApiModelProperty(value = "pageNo", required = true)
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNo = 1;
    @ApiModelProperty(value = "pageSize", required = true)
    @NotNull(message = "每页记录数不能为空")
    @Min(value = 1, message = "每页记录数不能小于1")
    private Integer pageSize = 15;
}
